package com.weiaibenpao.demo.chislim.adater;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by wlx on 2017/10/16.
 */

public class CompleteInfoAdapter extends FragmentPagerAdapter {
    List<Fragment> list;
    public CompleteInfoAdapter(FragmentManager fm, List<Fragment> list) {
        super(fm);
        this.list=list;
    }

    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }

    @Override
    public int getCount() {
        return list!=null?list.size():0;
    }
}
